package com.icloud.common.database.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

@Getter
@Setter
@TableName("customer_settings")
@ApiModel(value = "CustomerSettings对象", description = "前台客户设置")
public class CustomerSettings implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("前台客户账号Id")
    @TableField("customer_id")
    private Long customerId;

    @ApiModelProperty("自动接受群组邀请. ACCEPT,REJECT")
    @TableField("accept_group_invite")
    private String acceptGroupInvite;

    @ApiModelProperty("退出群组时删除会话和记录. KEEP,DELETE")
    @TableField("clear_group_exit")
    private String clearGroupExit;

    @ApiModelProperty("禁言.TRUE,FALSE")
    @TableField("silence")
    private String silence;

    @ApiModelProperty("创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty("修改时间")
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}
